package com.ywjg.serviceimp;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.ywjg.dao.SlideDao;
import com.ywjg.model.Slide;

@Service
public class SlideService {
	@Resource
	SlideDao slideDao;
	
	public List<Slide> findAllSlide(){
		return slideDao.findAll();
	}
	
	public void deleteSlide(int id){
		 slideDao.delete(id);
	}
	
	public void saveSlide(Slide slide){
		 slideDao.save(slide);
	}

}
